//
//  RootViewController.m
//	Abstract: the main window controller.
//  IWeighMyself
//
//  Created by Francisco Gindre on 7/28/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NewUserViewController.h"
@interface RootViewController : UITableViewController {

	/*
	 menuList contains arrays that have the LocalizedStrings of the cells in every section of this table view
	 each one of those NSMutableArray objects contains the corresponding NSLocalizedString indexed by row.
	 */
	NSMutableArray *menuList;
	
	/*
	 sectionList has the NSLocalizedStrings for each section of this table view.
	 */
	NSMutableArray *sectionList;
	
	// Set a settings button for the navigation bar
	UIBarButtonItem *settingsButton;
	
	// create a property for the view.
	NewUserViewController *settingsView;
	
	IWeighMyselfAppDelegate *appDelegate;
	
	
	
	
	
}

@property (nonatomic,retain) UIBarButtonItem *settingsButton;
@property (nonatomic,retain) NSMutableArray *menuList;
@property (nonatomic,retain) NSMutableArray *sectionList;
@property (nonatomic,retain) NewUserViewController *settingsView;
@property (nonatomic,retain) IWeighMyselfAppDelegate *appDelegate;
/*
 this method creates up the settings view controllers and pushes it to the navigation controller. It is called whenever
 the settings view needs to be displayed. This method also makes sure the view isn't created more than once.
 */
-(void) openSettingsView:(id)sender;

/*
 creates a LogNewWeightViewController and pushes in to the navigation controller. It is called whenever
 the user needs to log a new weight. The last weight registered is the default entry (if available)
 */
-(void) openLogNewWeightView;

/*
 creates a WeightHistoryViewController lazily and pushes int to the navigation controller. 
 */

-(void) openWeightHistoryView;


@end
